package com.laowang.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.framework.web.domain.PageObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 用户积分变动记录对象 user_point_log
 *
 * @author laowang
 * @date 2023-01-05
 */
@NoArgsConstructor
@Data
public class UserPointLog extends PageObject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id", required = false)
    private Integer userId;



    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date created;

    /**
     * 旧积分
     */
    @Excel(name = "旧积分")
    @ApiModelProperty(value = "旧积分", required = false)
    private Integer oldPoint;

    /**
     * 变动积分
     */
    @Excel(name = "变动积分")
    @ApiModelProperty(value = "变动积分", required = false)
    private Integer changePoint;

    /**
     * 当前积分
     */
    @Excel(name = "当前积分")
    @ApiModelProperty(value = "当前积分", required = false)
    private Integer newPoint;


    @Excel(name = "变动类型,1邀请,2购买返积分,3积分兑换,4购买会员,5打赏 等")
    @ApiModelProperty(value = "", required = false)
    private Integer type;


    /**
     * $column.columnComment
     */
    @Excel(name = "")
    @ApiModelProperty(value = "", required = false)
    private String fromSourceId;


    @ApiModelProperty(value = "", required = false)
    private String remark;




}
